package com.timmy.video.ui.fragment;

import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * @Auther: Timmy
 * @Data: 2017/7/22
 * @Fuction:
 */

public class CustomDialogFragment extends DialogFragment {
    /**
     * 和一般Fragment的onCreate方法一样
     *
     * @param inflater
     * @param container
     * @param savedInstanceState
     * @return 返回View对象
     */
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return super.onCreateView(inflater, container, savedInstanceState);
    }
    /**
     * 用于在Fragment里面嵌套Dialog, 和上面的方法两选一实现即可.
     * 如果两个都写了只有这个方法生效
     *
     * @param savedInstanceState
     * @return 返回Dialog对象
     */
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        return super.onCreateDialog(savedInstanceState);
    }
}
